package services;

import domain.Provider;
import utils.PageBean;

import java.util.List;

public interface ProviderService {
    //根据指定条件分页查询供应商
    public List<Provider> queryProviderByPage(String proCode, String proName, PageBean pageBean);
    //查询总记录数
    public int totalCount();
    //添加供应商
    public boolean addProvider(Provider provider);
    //查看供应商
    public Provider queryProviderById(int id);
    //删除供应商
    public int deleteProvider(int id);
    //修改供应商
    public boolean modifyProvider(Provider provider);
    //插叙所有记录
    List<Provider> queryAll();
}
